echo off
rem deploy given app on GF
call gf_user
if not "%ho%" == "" set expr_ho=--host %ho%
if "%ho%" == "127.0.0.1" set expr_ho=
if "%ho%" == "localhost" set expr_ho=
if not "%gf.admin.port%" == "" set expr_gf.admin.port=--port %gf.admin.port%
if not "%gpsw%" == "" set expr_gpsw=--passwordfile %gpsw%
call %gf_home%\bin\asadmin deploy %expr_ho% %expr_gf.admin.port% %expr_gpsw% --user %gf_user% %1
echo on